Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cut ScopeConsumer #9995

Merged
merged 2 commits into from
Oct 1, 2024
Merged

Conversation

nickdrozd
Copy link
Collaborator

Type
βœ“ πŸ”¨ Refactoring

Description

The ScopeConsumer class is only used by the NamesConsumer. It adds an extra level of indirection, but without providing any clear benefit. Cut it and incorporate its fields directly into NamesConsumer.

nickdrozd and others added 2 commits October 1, 2024 12:13
This class is only used by the NamesConsumer. It adds an extra level
of indirection, but without providing any clear benefit.
@nickdrozd nickdrozd added the Skip news πŸ”‡ This change does not require a changelog entry label Oct 1, 2024
Copy link

codecov bot commented Oct 1, 2024

Codecov Report

All modified and coverable lines are covered by tests βœ…

Project coverage is 95.80%. Comparing base (74c49b2) to head (881c8a1).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #9995      +/-   ##
==========================================
- Coverage   95.80%   95.80%   -0.01%     
==========================================
  Files         174      174              
  Lines       18946    18937       -9     
==========================================
- Hits        18152    18143       -9     
  Misses        794      794              
Files with missing lines Coverage Ξ”
pylint/checkers/variables.py 97.20% <100.00%> (-0.02%) ⬇️

Copy link
Contributor

github-actions bot commented Oct 1, 2024

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 881c8a1

Copy link
Member

@jacobtylerwalls jacobtylerwalls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will give this a look and an approval later, but just noting quickly I find this a welcome refactor!

Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Pierre-Sassoulas Pierre-Sassoulas added the Maintenance Discussion or action around maintaining pylint or the dev workflow label Oct 1, 2024
@jacobtylerwalls jacobtylerwalls merged commit 3097f0b into pylint-dev:main Oct 1, 2024
47 of 48 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintenance Discussion or action around maintaining pylint or the dev workflow Skip news πŸ”‡ This change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants